﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleAppB5.grapics
{
    /// <summary>
    /// 正方形
    /// </summary>
    public class Square : Graphical
    {
        private double width = 0;
        public Square()
        {
            this.width = new Random().Next(1, 10);
        }
        public override double CalculateArea()
        {
            return this.width * this.width;
        }
    }
}
